/**Invoice Tester class
 * 
 * @author locphan
 *
 */
public class InvoiceTester
{

   public static void main(String[] args)
   {
      Invoice e = new Invoice();
      
      e.add(new LineItem("part 1", 16.50));
      e.add(new LineItem("part 2",14.50));
      e.add(new LineItem("part 3", 17.89));
      e.add(new LineItem("part 4",89.22));
      
      System.out.println(e);
      
      e.changeCursorTo(0);
      
      System.out.println(e);
      
      e.add(new LineItem("part 0", 18.33));
      
      System.out.println(e);
      
      e.changeCursorTo(4);
      e.replace(new LineItem("part 1",16.50), new LineItem("part 9",16.50));
      
      System.out.println(e);
      
      e.add(new LineItem("part 10", 18.222));
      
      System.out.println(e);

   }

}
